import http from '../request';

export const getMessageUnreadStatus: any = ()=>{
    return http.request({
        url:'/messages/unread-status',
        method: 'get'
    })
}
// 查询消息列表
export const getMessageList: any = (page: number, limit: number) => {
    return http.request({
        url: `/messages/list`,
        method: 'post',
        data: {
            page: page,
            limit: limit
        }
    });
};

export const setMessageRead: any = () => {
    return http.request({
        url: `/messages/mark-all-read`,
        method: 'post'
    })
}